.home {
  $f: 19.2;

  .banner {
    position: relative;
    &::before{
      content:'';
      display: block;
      position: absolute;
      left: 0;
      top:0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, .2);
    }
    img {
      width: 100%;
      display: block;
      object-fit: cover;
      height: 33vh;
    }
    .text{
      position: absolute;
      left: 0;
      width: 100%;
      bottom:30/$f+vw;
      color:white;
      padding: 0 200/$f+vw;
      .p1{
        font-size: 30/$f+vw;
        font-weight: 600;
        line-height: 1;
      }
      .des{
        font-size: 20/$f+vw;
        margin-top: 20/$f+vw;
        line-height: 1.3;
        font-weight: 200;
      }
    }
  }

  .nav_menu {
    background: #F5F5F5;
    padding: 0 200/$f+vw;
    display: flex;
    align-items: center;

    a {
      display: block;
      padding: 20/$f+vw 44/$f+vw;
      color: #222;
      font-size: 17/$f+vw;
      line-height: 1.2;
      transition: all 600ms;
      cursor: pointer;

      &:hover {
        background: #FFF;
        color: #E6001A;
      }
    }

    .on {
      background: #FFF;
      color: #E6001A;
    }

    span {
      width: 1px;
      height: 10/$f+vw;
      background: #CCC;
    }
  }

  .tabs{
    margin: 81/$f+vw 0 61/$f+vw 0;
    display: flex;
    justify-content: center;
    a{
      border: 1px solid rgba(218, 218, 218, 1);
      padding: 20/$f+vw 60/$f+vw;
      color:rgba(51, 51, 51, 1);
      font-size: 18/$f+vw;
      line-height: 1.3;
      transition: all 600ms;
      &:hover{
        background: #E94829;
        color:white;
        border-color: #E94829;
      }
    }
    .on{
      background: #E94829;
      color:white;
      border-color: #E94829;
    }
  }
  .section {
    padding:0 400/$f+vw 200/$f+vw 400/$f+vw;
    position: relative;
    .times{
      position: absolute;
      left: 130/$f+vw;
      top:120/$f+vw;
      a{
        display: flex;
        align-items: center;
        .line{
          width: 10/$f+vw;
          height: 1px;
          background: rgba(102, 102, 102, 1);
          transition: all 600ms;
        }
        p{
          color:rgba(102, 102, 102, 1);
          font-size: 14/$f+vw;
          line-height: 2.5;
          margin-left: 10/$f+vw;
          transition: all 600ms;
        }
        &:hover{
          .line{
            width: 51/$f+vw;
          }
          p{
            color:rgba(230, 6, 25, 1);
          }
        }
      }
      .on{
        .line{
          width: 51/$f+vw;
        }
        p{
          color:rgba(230, 6, 25, 1);
        }
      }
    }
    .s_top {
      display: flex;
      justify-content: space-between;
      align-items: center;

      .t {
        color: #000;
        font-size: 32/$f+vw;
      }

      .s_search {
        border-bottom: 3px solid #333;
        display: flex;
        padding: 15/$f+vw;
        align-items: center;

        p {
          color: rgba(51, 51, 51, 1);
          font-size: 15/$f+vw;
          margin: 0 50/$f+vw 0 30/$f+vw ;
        }

        input {
          color: rgba(51, 51, 51, 1);
          font-size: 15/$f+vw;
          width: 220/$f+vw;
          outline: none;
          border: none;
        }

        .btn {
          cursor: pointer;

          svg {
            display: block;
            width: 20/$f+vw;
          }
        }
      }
    }
    .wrap {
      .list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 50/$f+vw 24/$f+vw;
        margin: 60/$f+vw 0;

        a {
          width: 100%;
          cursor: pointer;

          .pic {
            overflow: hidden;
            position: relative;
            &::before{
              content:'';
              display: block;
              position: absolute;
              left: 0;
              top:0;
              width: 100%;
              height: 100%;
              background: rgba(6, 50, 81, 0.67);
              z-index: 10;
              transition: all 600ms;
            }
            img {
              width: 100%;
              display: block;
              object-fit: cover;
              transition: all 600ms;
            }
          }
          p{
            color: #333;
            font-size: 20/$f+vw;
            text-align: center;
            line-height: 1.16;
            margin-top: 20/$f+vw;
          }


          &:hover {
            .pic {
              img {
                transform: scale(1.05);
              }
              &::before{
                opacity: 0;
              }
            }
          }
        }
      }

      .pager {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 80/$f+vw 0;

        .prev,
        .next {
          svg {
            display: block;
            width: 23/$f+vw;
          }
        }

        a {
          img {
            margin: 0 0 0 10px;
            display: block;
          }
        }

        a:nth-last-child(2) {
          img {
            margin: 0 10px 0 0;
          }
        }

        .nums {
          display: flex;
          margin: 0 1vw;

          a {
            color: rgba(139, 139, 139, 1);
            font-size: 20/$f+vw;
            padding: 0.1vw 0.5vw;
            margin: 0 0.2vw;

          }


          .active {
            color: #FB0000;
            border-bottom: 2px solid #FB0000;
            font-weight: 600;
          }
        }

        p {
          color: rgba(51, 51, 51, 1);
          font-size: 15/$f+vw;
          margin-left: 40/$f+vw;
        }
      }
    }
  }
  @media screen and (max-width: 1024px) {
    .banner {
      img {
        height: 300px;
      }
      .text{
        padding: 0 5%;
        bottom: 20px;;
        .p1{
          font-size: 24px;
        }
        .des{
          font-size: 16px;
          margin-top: 10px;
        }
      }
    }

    .nav_menu{
      padding: 0;
      flex-wrap: wrap;
      a{
        padding: 15px 10px;
        font-size: 14px;
      }
      span{
        height: 10px;
      }
    }

    .tabs{
      margin: 30px 0 0 0;
      flex-wrap: wrap;
      a{
        padding:12px 15px;
        font-size: 14px;
      }
    }

    .section {
      padding: 30px 5% 60px 5%;

      .s_top {
        flex-direction: column;

        .t {
          font-size: 24px;
        }

        .s_search {
          padding: 15px;
          width: 100%;

          p {
            font-size: 16px;
            margin: 0 20px 0 15px;
          }

          input {
            font-size: 16px;
            width: 70%;
          }

          .btn {
            svg {
              width: 20px;
            }
          }
        }
      }
      .times{
        position: static;
        display: flex;
        justify-content: space-between;
        margin: 20px 0;
        a{
          .line{
            width: 20px;
          }
          p{
            font-size: 16px;
          }
        }
        .on{
          .line{
            width: 40px;
          }
        }
      }
      .wrap{
        .list {
          grid-template-columns: repeat(1, 1fr);
          gap: 25px;
          margin: 0 0 30px 0;
          a{
            p{
              font-size: 18px;
              margin-top: 15px;
            }
          }
        }
        .pager {
  
          .prev,
          .next {
            svg {
              width: auto;
            }
          }
  
          .nums {
            margin: 0 10px;
  
            a {
              font-size: 16px;
              padding: 3px 5px;
              margin: 0 5px;
            }
          }
          p{
            font-size: 14px;
          }
        }
      }
    }
  }
}